﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class Result
    {
        public bool Success { get; set; }
        public string Msg { get; set; }
    }

    public class Result<T> where T : new()
    {
        public bool Success { get; set; }
        public string Msg { get; set; }
        public T Data { get; set; }

        public Result()
        {
            Data = new T();//这样就可以实例化。也可以编译通过。
        }
    }
}
